package com.hulushuju.core.net;

import lombok.Getter;
import okhttp3.OkHttpClient;
import okhttp3.Request;

/**
 * @Author: Hanjiafeng
 * @Date: 2019-05-27
 * @Desc: 请求对象
 */
public class HttpClient {
    @Getter
    private HttpParameter httpParameter;

    private OkHttpClient.Builder okHttpClientBuilder;

    private Request request;


    private void init() {
        httpParameter = new HttpParameter.Builder()
                .proxy(null).build();
        okHttpClientBuilder.proxy(httpParameter.getProxy().initProxy())
                .build();
        httpParameter.addHeader("key", "value");
        Request request = new Request.Builder()
                .headers(httpParameter.getHeaders())
                .build();
    }
}
